// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import Scroller from 'vue-scroller'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Xalert from './plugin/alert'
import {Alert, Toast, Notify, Loading, Confirm} from 'vue-ydui/dist/lib.rem/dialog'
import {Popup} from 'vue-ydui/dist/lib.px/popup'
import {Icons} from 'vue-ydui/dist/lib.px/icons'
import {Button, ButtonGroup} from 'vue-ydui/dist/lib.px/button'
import {CheckList, CheckListItem} from 'vue-ydui/dist/lib.px/checklist'
import 'vue-ydui/dist/ydui.base.css'
import './css/index.css'
import './components/public/index.js'
import './util/m-date.js'
Vue.config.productionTip = false
Vue.prototype.$dialog = {
  alert: Alert,
  toast: Toast,
  notify: Notify,
  confirm: Confirm,
  loading: Loading,
}
// Vue.use(Vuex)
Vue.use(Scroller)
Vue.use(ElementUI)
Vue.use(Xalert)
Vue.component(Popup.name, Popup)
Vue.component(Icons.name, Icons)
Vue.component(CheckList.name, CheckList)
Vue.component(CheckListItem.name, CheckListItem)
Vue.component(Button.name, Button)
Vue.component(ButtonGroup.name, ButtonGroup)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App,Scroller},
  store,
  template: '<App/>'
})
